function getUserInfo(){
    let $id = location.hash;
    if($id){
        // console.log($id.slice(1));
        let $info_options = {
                headers : {
                    authorization : "token"
                }
            }
        let $res = $.ajax("http://localhost:8888/users/info/" + $id.slice(1),$info_options);
        $res.done( (data) => {
            $(".login").html(`<a href="#">您好: ${data.info.nickname}</a>`)
        })
    }else{
        return;
    }      
}

getUserInfo()